{# content reference template #}
<div id="content-left"><div id="ref-data-selector">
<table cellSpacing="5px"><tbody>
	{% for category in categories %}
	<tr><td>
		<!--<div class="selector">-->
		<div class="selector{% ifequal category.en current %} current{% endifequal %}">
			<span class="ja">{{ category.ja }}</span>
			<span class="sep"> - </span>
			<span class="en">{{ category.en }}</span>
		</div>
	</td></tr>
	{% endfor %}
</tbody></table>
{% block admin_link %}{% endblock %}
</div></div>

<div id="content-right">
<div id="ref-data-wrap"><div id="ref-data">
{% for dt in data %}
<div class="items">
	<h3 class="category">
		<span class="ja">{{ dt.category.ja }}</span>
		<span class="sep"> - </span>
		<span class="en">{{ dt.category.en }}</span>
	</h3>
	{% for item in dt.items %}
	<div class="item">
		<div class="pattern-wrap"><h4 class="pattern">{{ item.pattern }}</h4></div>
		<p class="title"><b>{{ item.title }}</b></p>
		<div class="desc">{{ item.description }}</div>
		<div class="footer">
			{% block admin_footer %}{% endblock %}
			<p class="published"><b>published:&nbsp;</b><span>{{ item.jst_published|date:"Y-m-d H:i:s O" }}</span></p>
			{% if item.last_update %}
			<p class="last-update"><b>last update:&nbsp;</b><span>{{ item.jst_last_update|date:"Y-m-d H:i:s O" }}</span></p>
			{% endif %}
		</div>
	</div>
	{% endfor %}
</div>
{% endfor %}
</div></div>
<div class="clear"></div>
</div>